package com.yonyou.cyxdms.basedata.service.repository.smstemplate;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.basedata.client.domains.vo.SmsTemplateVO;
import com.yonyou.cyxdms.basedata.service.entity.smstemplate.SmsTemplatePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 短信模板 Mapper 接口
 * </p>
 *
 * @author dengqiang
 * @since 2019-09-19
 */
public interface SmsTemplateMapper extends SuperMapper<SmsTemplatePO> {

    List<SmsTemplateVO> qrySmsTemplatePage(Page<SmsTemplateVO> page, @Param("params")Map<String,Object> queryCondition);

    List<Long> searchBySmsTemplateDefault(@Param("smsTemplateType") String smsTemplateType, @Param("isDefault")Integer isDefault, @Param("appId")String appId, @Param("ownerCode")String ownerCode);

    List<Long> searchBySmsTemplateDefault2(@Param("smsTemplateType") String smsTemplateType, @Param("isDefault")Integer isDefault, @Param("smsTemplateId")Long smsTemplateId, @Param("appId")String appId, @Param("ownerCode")String ownerCode);

    List<SmsTemplateVO> getBySmsTemplateType(@Param("smsTemplateType")String smsTemplateType,@Param("appId")String appId,@Param("ownerCode")String ownerCode);
}
